﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InstrumentCheck.DAL;
using InstrumentCheck.Module;

namespace InstrumentCheck.BLL
{
    public class Asset_bll
    {
        private static Asset_dal assetDal = new Asset_dal();

        public static List<Item> GetQueryAssetInfo(string strTableName, string strColumnName, string strQueryValue)
        {
            return assetDal.GetQueryAssetInfo_dal(strTableName, strColumnName, "%" + strQueryValue + "%");
        }

        public static Item GetItemInfoByAssetNO(string strAssetNO)
        {
            return assetDal.GetChangeItemInfo(strAssetNO);
        }

        public static bool IsInProcessing(string strAssetNO)
        {
            return assetDal.IsInApproving(strAssetNO);
        }
        public static bool ExistInItem(string strAssetNO)
        {
            return assetDal.ExistInItem(strAssetNO);
        }
    }
}
